package com.vencent.spring.blend.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.vencent.spring.java.bean.Toys;
import com.vencent.spring.xml.bean.Person;

public class ApplicationContextStarterr {
	@SuppressWarnings("resource")
	public static void main(String[] args) {
		ApplicationContext cpxa = new ClassPathXmlApplicationContext("/com/vencent/spring/blend/config/applicationContext.xml");
		Person per = cpxa.getBean(Person.class);
		Toys toys = cpxa.getBean(Toys.class);
		per.play();
		toys.getLikeToys();
	}
}
